/*
 * tcp.h
 *
 *  Created on: Oct 12, 2011
 *      Author: welcome
 */

#ifndef TCP_H_
#define TCP_H_

#include <rdesktop.h>

#ifdef __cplusplus
extern "C" {
#endif

extern STREAM tcp_init(uint32 maxlen);
extern void tcp_send(STREAM s);
extern STREAM tcp_recv(STREAM s, uint32 length);
extern RD_BOOL tcp_connect(char *server);
extern void tcp_disconnect(void);
extern char *tcp_get_address(void);
extern void tcp_reset_state(void);

extern int g_tcp_port_rdp;

#ifdef __cplusplus
}
#endif
#endif /* TCP_H_ */
